home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Technology Seed / Jan. '98 ATS.toast / QuickTime™ 3.0b11 / QTPublicInterfaces / RIncludes / MacTypes.r < prev    next >
Encoding:
Text File  |  1998-01-12  |  3.1 KB  |  105 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        MacTypes.r
  3.  
  4.      Contains:    Basic Macintosh data types.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    QuickTime 3.0 Beta
  8.  
  9.      Copyright:    © 1985-1997 by Apple Computer, Inc., all rights reserved.
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. */
  18.  
  19. #ifndef __MACTYPES_R__
  20. #define __MACTYPES_R__
  21.  
  22. #ifndef __CONDITIONALMACROS_R__
  23. #include "ConditionalMacros.r"
  24. #endif
  25.  
  26. #ifndef __SCRIPT_R__
  27. #include "Script.r"        /* to get Region codes for 'vers' resource */
  28. #endif
  29.  
  30. #define normal                             0
  31. #define bold                             1
  32. #define italic                             2
  33. #define underline                         4
  34. #define outline                         8
  35. #define shadow                             0x10
  36. #define condense                         0x20
  37. #define extend                             0x40
  38.  
  39.                                                             /*  Version Release Stage Codes  */
  40. #define developStage                     0x20
  41. #define alphaStage                         0x40
  42. #define betaStage                         0x60
  43. #define finalStage                         0x80
  44.  
  45. #ifndef __CONTROLS_R__
  46. #include "Controls.r"        /* Types.r used to define 'CNTL' and 'cctb' */
  47. #endif
  48. #ifndef __MACWINDOWS_R__
  49. #include "MacWindows.r"      /* Types.r used to define 'WIND' and 'wctb' */
  50. #endif
  51. #ifndef __DIALOGS_R__
  52. #include "Dialogs.r"         /* Types.r used to define 'DLOG', 'ALRT', 'DITL', 'actb', and 'dctb' */
  53. #endif
  54. #ifndef __MENUS_R__
  55. #include "Menus.r"           /* Types.r used to define 'MENU', 'MBAR', and 'mctb' */
  56. #endif
  57. #ifndef __ICONS_R__
  58. #include "Icons.r"           /* Types.r used to define 'ICON', 'ICN#', 'SICN', 'ics#', 'icm#', 'icm8', 'icm4', 'icl8', etc. */
  59. #endif
  60. #ifndef __FINDER_R__
  61. #include "Finder.r"          /* Types.r used to define 'BNDL', 'FREF', 'open', and 'kind' */
  62. #endif
  63. #ifndef __QUICKDRAW_R__
  64. #include "Quickdraw.r"       /* Types.r used to define 'CURS', 'PAT', 'ppat', 'PICT', 'acur', 'clut', 'crsr', and 'PAT#' */
  65. #endif
  66. #ifndef __PROCESSES_R__
  67. #include "Processes.r"       /* Types.r used to define 'SIZE' */
  68. #endif
  69. #ifndef __APPLEEVENTS_R__
  70. #include "AppleEvents.r"     /* AppleEvents.r used to define 'aedt' */
  71. #endif
  72.  
  73. /*----------------------------STR  • Pascal-Style String--------------------------------*/
  74. type 'STR ' {
  75.         pstring;                                                /* String                */
  76. };
  77. /*----------------------------STR# • Pascal-Style String List---------------------------*/
  78. type 'STR#' {
  79.         integer = $$Countof(StringArray);
  80.         array StringArray {
  81.                 pstring;                                        /* String                */
  82.         };
  83. };
  84.  
  85. /*----------------------------RECT • single rectangle-----------------------------------*/
  86. type 'RECT' { rect; };
  87.  
  88. /*----------------------------vers • Version--------------------------------------------*/
  89. type 'vers' {
  90.         hex byte;                                                /* Major revision in BCD*/
  91.         hex byte;                                                /* Minor vevision in BCD*/
  92.         hex byte    development = 0x20,                            /* Release stage        */
  93.                     alpha = 0x40,
  94.                     beta = 0x60,
  95.                     final = 0x80, /* or */ release = 0x80;
  96.         hex byte;                                                /* Non-final release #    */
  97.         integer;                                                /* Region code            */
  98.         pstring;                                                /* Short version number    */
  99.         pstring;                                                /* Long version number    */
  100. };
  101.  
  102.  
  103. #endif /* __MACTYPES_R__ */
  104.  
  105.